package spring.cloud.eurekaclientfund.interceptor;

import feign.RequestInterceptor;
import feign.RequestTemplate;

public class UserInterceptor implements RequestInterceptor {

    //根据自己的需求定制 RestTemplate和请求参数,请求体等
    @Override
    public void apply(RequestTemplate template) {

        System.out.println("UserInterceptor拦截器拦截了");
        template.header("id","1");

    }
}
